package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.dto.TeachplanDTO;
import com.xuecheng.content.entity.Teachplan;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author 黄子弟
 * @since 2021-12-11
 */
public interface TeachplanService extends IService<Teachplan> {
    /**
     * 查询课程大纲
     * @param courseBaseId  课程id
     * @param companyId  机构id
     * @return  TeachplanDTO 课程计划封装类
     */
    TeachplanDTO getTeachplan(Long courseBaseId,Long companyId);

    /**
     * 新增或修改课程计划
     * @param teachplanDTO  课程计划信息封装类
     * @param companyId  机构id
     * @return
     */
    TeachplanDTO createOrModifyTeachplan(TeachplanDTO teachplanDTO, Long companyId);

    /**
     * 删除课程计划
     * @param teachPlanId  课程id
     * @param companyId  机构id
     */
    void removeTeachplan(Long teachPlanId, Long companyId);

}
